﻿<%@ Control Language="C#" AutoEventWireup="true" Codebehind="CreateUser.ascx.cs"
    Inherits="Portal.Administrator.Users.CreateUser" %>
<asp:UpdatePanel ID="upanelEditUser" runat="server" UpdateMode="Conditional" RenderMode="Inline">
    <ContentTemplate>
        <table class="content" border="0" cellpadding="0" cellspacing="1" width="100%">
            <tr>
                <td class="header1" colspan="2" align="left">
                    <asp:Label ID="lblCommandName" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="2" class="header2" height="18">
                    <asp:Label ID="lblUpdateStatus" runat="server" Font-Bold="True" ForeColor="Blue"></asp:Label>
                </td>
            </tr>
            <tr>               
                <td class="postheader" align="left" width="25%">Tên truy cập</td>
                <td class="post" align="left" width="75%">
                    <asp:TextBox ID="txtUsername" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtUsername"
                        ErrorMessage="Chưa nhập tên truy cập"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td class="postheader" align="left" width="25%">Mật khẩu</td>
                <td class="post" align="left" width="75%">
                    <asp:TextBox ID="txtPassword" runat="server" value="password" TextMode="Password"></asp:TextBox><asp:HiddenField ID="hddCurPassword" runat="server" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPassword"
                        ErrorMessage="Chưa nhập mật khẩu"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td class="postheader" align="left" width="25%">Xác nhận mật khẩu</td>
                <td class="post" align="left" width="75%">
                    <asp:TextBox ID="txtPasswordConfirm" runat="server" value="password" TextMode="Password"></asp:TextBox>&nbsp;
                    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtPassword"
                        ControlToValidate="txtPasswordConfirm" ErrorMessage="Mật khẩu ko đúng"></asp:CompareValidator></td>
            </tr>
            <tr>
                <td colspan="2" class="header2" height="18">
                    Profile Information
                </td>
            </tr>            
            <tr>
                <td class="postheader" align="left" width="25%">Họ và Tên</td>
                <td class="post" align="left" width="75%">
                    <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="postheader" align="left" width="25%">Tên hiển thị</td>
                <td class="post" align="left" width="75%">
                    <asp:TextBox ID="txtDisplayName" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="postheader" align="left" width="25%">Email</td>
                <td class="post" align="left" width="75%">
                    <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtEmail"
                        ErrorMessage="Chưa nhập email"></asp:RequiredFieldValidator></td>
            </tr>                       
            <tr>
                <td class="postheader" align="left" width="25%">Điện thoại</td>
                <td class="post" align="left" width="75%">
                    <asp:TextBox ID="txtTel" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="postheader" align="left" width="25%">Di động</td>
                <td class="post" align="left" width="75%">
                    <asp:TextBox ID="txtMobile" runat="server" CssClass="inputTextBox150"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="postheader" align="left" width="25%">Địa chỉ</td>
                <td class="post" align="left" width="75%">
                    <asp:TextBox ID="txtAddress" runat="server" TextMode="MultiLine" Height="60px" CssClass="inputTextBox150"></asp:TextBox></td>
            </tr>
            <tr>
                <td colspan="2" class="header2" height="18">
                    Portal Preferences
                </td>
            </tr>
            <tr>
                <td class="postheader" align="left" width="25%">Múi giờ</td>
                <td class="post" align="left" width="75%">
                    <asp:DropDownList id="TimeZones" runat="server" DataValueField="Value" DataTextField="Name"></asp:DropDownList></td>
            </tr>
                <td class="postheader" align="left" width="25%">Xác nhận</td>
                <td class="post" align="left" width="75%">
                    <asp:CheckBox ID="chkIsApproval" runat="server" Checked="true" /></td>
            </tr>
                <td class="postheader" align="left" width="25%">Đình chỉ</td>
                <td class="post" align="left" width="75%">
                    <asp:DropDownList id="Suspended" runat="server" DataValueField="Value" DataTextField="Name"></asp:DropDownList></td>
            </tr>
            <tr>
                <td class="postheader" align="left" width="25%">Nhận Email thông báo</td>
                <td class="post" align="left" width="75%">
                    <asp:CheckBox ID="PMNotification" runat="server" Checked="true" /></td>                        
            </tr>            
            <tr>
                <td class="postheader" align="left" width="25%">Là Super Admin</td>
                <td class="post" align="left" width="75%">
                    <asp:Panel ID="pnlSuperadmin" runat="server" Width="100%" Visible="false">
                    <asp:CheckBox ID="chkIsSuperAdmin" runat="server" /></asp:Panel></td>
            </tr>            
            <tr>
                <td class="postheader" align="left" width="25%" valign="top">Cổng</td>
                <td class="post" align="left" width="75%">
                    <asp:ListBox ID="lstPortal" style="height:150px;width:180px;" runat="server" SelectionMode="Multiple"></asp:ListBox></td>
            </tr>  
            <tr>
                <td class="postfooter" colspan="2" valign="middle" align="center">
                    <Button:Create ID="btnUpdate" runat="server" CssClass="pbutton" OnClick="btnCreate_Click"  Width="77px" Text="Cập  nhật" />
                    <asp:Button ID="btnCancel" runat="server" CssClass="pbutton" Text="Hủy" Width="77px" OnClick="btnCancel_Click" /></td>
            </tr>                      
        </table> 
    </ContentTemplate>
</asp:UpdatePanel>
